package systemEntity

import "github.com/goravel/framework/database/orm"

// EbSystemAttachmentCategory 附件分类表
type SystemAttachmentCategory struct {
	orm.Model
	PID               uint               `json:"pid" gorm:"column:pid" form:"pid"`          // 父级ID
	Name              string             `json:"name" gorm:"column:name" form:"name"`       // 分类名称
	Enname            string             `json:"enname" gorm:"column:enname" form:"enname"` // 分类目录
	SystemAttachments []SystemAttachment `json:"system_attachments" gorm:"foreignKey:PID;references:ID" form:"system_attachments"`
	orm.SoftDeletes
}

// TableName 表名称
func (*SystemAttachmentCategory) TableName() string {
	return "eb_system_attachment_category"
}
